﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Easy.ServiceLocator.Unity.Interceptor
{
    class DefaultConfigurer : IInterceptionConfigurer
    {
        //protected UnityContainer _unityContainer = EasyUnity.UnityContainerExtention;

        public void Configure(List<System.Reflection.Assembly> assemblies)
        {
            //foreach (Assembly assembly in assemblies)
            //{
            //    _unityContainer.Configure<Interception>()
            //        .AddPolicy(assembly.GetName().Name + "ExceptionPolicy")
            //        .AddMatchingRule<AssemblyMatchingRule>
            //         (
            //             new InjectionConstructor
            //             (
            //                 new InjectionParameter(assembly)
            //             )
            //         )
            //         .AddCallHandler
            //         (
            //             exceptionCallHandler.GetType(),
            //             new ContainerControlledLifetimeManager(),
            //             new InjectionConstructor()
            //         );
            //}
        }
    }
}
